query {
  rateLimit {
    limit
    cost
    remaining
    resetAt
  }
  securityAdvisories(first: 100
      orderBy: {field: UPDATED_AT, direction: ASC}
      {{#updatedSince}}updatedSince: "{{updatedSince}}" {{/updatedSince}}
      {{#publishedSince}}publishedSince: "{{publishedSince}}" {{/publishedSince}}
      {{#classifications}}classifications: {{classifications}} {{/classifications}}
      {{#after}}after: "{{after}}" {{/after}}
  ) {
    nodes {
      databaseId
      description
      ghsaId
      id
      identifiers {
        type
        value
      }
      notificationsPermalink
      origin
      permalink
      publishedAt
      references {
        url
      }
      severity
      summary
      updatedAt
      vulnerabilities(first: 100, orderBy: {field: UPDATED_AT, direction: ASC}) {
        edges {
          node {
            severity
            updatedAt
            firstPatchedVersion {
              identifier
            }
            vulnerableVersionRange
            package {
              ecosystem
              name
            }
          }
        }
        totalCount
        pageInfo {
          hasNextPage
          endCursor
        }
      }
      classification
      cvss {
        score
        vectorString
      }
      cwes(first: 50) {
        edges {
          node {
            cweId
            name
            description
          }
        }
        totalCount
        pageInfo {
          hasNextPage
          endCursor
        }
      }
      withdrawnAt
    }
    totalCount
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
